package com.yy.wga.mp.module.goods.request;

import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * description
 *
 * @author <a href="mailto:ludezh@dingtalk.com"> ludezh </a>
 * @version 1.0.0   2021/4/1,13:34
 * @since 1.0.0     2021/4/1,13:34
 */
@Data
public class BuyGoodsCreateOrderRequest {
    /**
     * 商品id
     */
    @NotNull
    private Long id;
    /**
     * 收获地址信息
     */
    @NotNull
    private DeliveryAddressInfo deliveryAddress;

    @Data
    public static class DeliveryAddressInfo {

        /**
         * 用户全名
         */
        private String userName;

        /**
         * 联系电话
         */
        private String phone;
        /**
         * 省份
         */
        private String provinceName;
        /**
         * 市
         */
        private String cityName;
        /**
         * 区
         */
        private String countyName;
        /**
         * 详细地址
         */
        private String detailInfo;
    }
}
